package com.jrj.mapping;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import com.jrj.domain.User;


/**
 *@author zhiming.li
 *@version createTime：2011-12-19 下午05:34:32
 */
public class UserMapping implements RowMapper{

	@Override
	public Object mapRow(ResultSet rs, int arg1) throws SQLException {
		User user = new User();
		user.setName(rs.getString("name"));
		user.setPassWord(rs.getString("passWord"));
		return user;
	}

}
